mirror of
https://github.com/stevenproctor/dotfiles.git
synced 2026-01-28 15:59:56 -06:00
Neovim config updates
This commit is contained in:
@@ -96,6 +96,7 @@
|
||||
|
||||
|
||||
|
||||
; (nvim.ex.autocmd "vimenter" "*" "++nested" "colorscheme" "solarized8")
|
||||
(nvim.ex.autocmd "vimenter" "*" "++nested" "colorscheme" "solarized8")
|
||||
;(nvim.ex.autocmd "vimenter" "*" "luafile" "treesitter.lua")
|
||||
;
|
||||
; (nvim.fn.glob "~/.vimrc.local")
|
||||
|
||||
4
nvim/.config/nvim/fnl/dotfiles/plugin/dadbodui.fnl
Normal file
4
nvim/.config/nvim/fnl/dotfiles/plugin/dadbodui.fnl
Normal file
@@ -0,0 +1,4 @@
|
||||
(module dotfiles.plugin.dadbodui
|
||||
{autoload { nvim aniseed.nvim }})
|
||||
|
||||
|
||||
@@ -41,6 +41,8 @@
|
||||
:<c-k> "lua vim.lsp.buf.signature_help()"
|
||||
:<leader>ca "lua vim.lsp.buf.code_action()"
|
||||
:<leader>cl "lua vim.lsp.codelens.run()"
|
||||
:<leader>ic "lua vim.lsp.buf.incoming_calls()"
|
||||
:<leader>oc "lua vim.lsp.buf.outgoing_calls()"
|
||||
:<leader>sld "lua vim.lsp.diagnostic.show_line_diagnostics()"
|
||||
:<leader>rn "lua vim.lsp.buf.rename()"
|
||||
:<leader>fa "lua vim.lsp.buf.formatting_sync()"
|
||||
@@ -50,10 +52,10 @@
|
||||
{:clojure
|
||||
{
|
||||
:<leader>cn "call LspExecuteCommand('clean-ns')"
|
||||
:<leader>ref "call LspExecuteCommand('extract-function', vim.api.nvim_eval(\"input('Function name: ')\")')"
|
||||
:<leader>ref "call LspExecuteCommand('extract-function', input('Function name: '))"
|
||||
:<leader>id "call LspExecuteCommand('inline-symbol')"
|
||||
:<leader>il "call LspExecuteCommand('introduce-let', vim.api.nvim_eval(\"input('Binding name: ')\")')"
|
||||
:<leader>m2l "call LspExecuteCommand('move-to-let', vim.api.nvim_eval(\"input('Binding name: ')\")')"
|
||||
:<leader>il "call LspExecuteCommand('introduce-let', input('Binding name: '))"
|
||||
:<leader>m2l "call LspExecuteCommand('move-to-let', input('Binding name: '))"
|
||||
}
|
||||
})
|
||||
|
||||
@@ -86,24 +88,25 @@
|
||||
|
||||
(bind-client-mappings client)
|
||||
(nvim.ex.autocmd :BufWritePre :<buffer> :lua "vim.lsp.buf.formatting_sync()")
|
||||
(nvim.ex.autocmd "BufEnter,CursorHold,InsertLeave" :<buffer> :lua "vim.lsp.codelens.refresh()")
|
||||
; (nvim.ex.autocmd "BufEnter,CursorHold,InsertLeave" :<buffer> :lua "vim.lsp.codelens.refresh()")
|
||||
|
||||
; client autocmds
|
||||
; -- vim.api.nvim_command[[autocmd BufWritePre <buffer> lua vim.lsp.buf_request_sync(vim.api.nvim_get_current_buf(), 'workspace/executeCommand', {command = 'clean-ns', arguments = {vim.uri_from_bufnr(0), vim.api.nvim_win_get_cursor(0)[1], vim.api.nvim_win_get_cursor(0)[2]}, title = 'Clean Namespace'})]]
|
||||
; -- vim.api.nvim_command[[autocmd BufWritePre <buffer> lua vim.lsp.buf_request_sync(vim.api.nvim_get_current_buf(), 'workspace/executeCommand', {command = 'clean-ns', arguments = {vim.uri_from_bufnr(1), vim.api.nvim_win_get_cursor(0)[1], vim.api.nvim_win_get_cursor(0)[2]}, title = 'Clean Namespace'})]]
|
||||
|
||||
(print "LSP Client Attached."))
|
||||
|
||||
(let [lspi (require :lspinstall)]
|
||||
(when lspi
|
||||
|
||||
(defn lsp-execute-command [cmd ...]
|
||||
(let [buf-uri (vim.uri_from_bufnr 0)
|
||||
cursor (vim.api.nvim_win_get_cursor 0)
|
||||
r (- (a.first cursor) 1)
|
||||
c (a.second cursor)
|
||||
args [buf-uri r c]
|
||||
]
|
||||
opts [buf-uri r c]
|
||||
args (a.concat opts [...])]
|
||||
(vim.lsp.buf.execute_command {:command cmd
|
||||
:arguments (a.merge args ...)})))
|
||||
:arguments args})))
|
||||
|
||||
(defn setup-servers []
|
||||
(lspi.setup)
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
(telescope.setup
|
||||
{:defaults
|
||||
{:vimgrep_arguments ["ag" "--nocolor" "--noheading"
|
||||
"--number" "--column"
|
||||
"--number" "--column" "--nobreak"
|
||||
"--smart-case" "--hidden" "--follow" "--skip-vcs-ignores"
|
||||
; "-g" "!.git/"
|
||||
]}})
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
:rainbow {:enable true
|
||||
:extended_mode true ; Also highlight non-bracket delimiters like html tags, boolean or table: lang -> boolean
|
||||
:max_file_lines 1000 ; Do not enable for files with more than 1000 lines, int
|
||||
:max_file_lines 10000 ; Do not enable for files with more than 1000 lines, int
|
||||
:colors [
|
||||
:#dc322f ; red
|
||||
:#b58900 ; yellow
|
||||
|
||||
@@ -34,6 +34,7 @@
|
||||
:airblade/vim-gitgutter {} ; Git
|
||||
:airblade/vim-gitgutter {} ; Git
|
||||
:clojure-vim/vim-jack-in {} ; Conjure support - jack-in with nrepl dependencies
|
||||
:folke/lsp-colors.nvim {}
|
||||
:hashivim/vim-terraform {} ; Terraform
|
||||
:hrsh7th/nvim-compe {:mod :compe} ; autocomplete
|
||||
:jiangmiao/auto-pairs {} ; backets, parens, and quotes in pairs
|
||||
|
||||
Reference in New Issue
Block a user