neovim update
This commit is contained in:
@@ -28,7 +28,7 @@
|
|||||||
:require :settings.window-picker)
|
:require :settings.window-picker)
|
||||||
|
|
||||||
(use! :nvim-neo-tree/neo-tree.nvim
|
(use! :nvim-neo-tree/neo-tree.nvim
|
||||||
:branch "v2.x"
|
:branch "v3.x"
|
||||||
:requires [:nvim-lua/plenary.nvim
|
:requires [:nvim-lua/plenary.nvim
|
||||||
:nvim-telescope/telescope.nvim
|
:nvim-telescope/telescope.nvim
|
||||||
:kyazdani42/nvim-web-devicons
|
:kyazdani42/nvim-web-devicons
|
||||||
@@ -46,7 +46,6 @@
|
|||||||
:require :bufdelete)
|
:require :bufdelete)
|
||||||
|
|
||||||
(use! :akinsho/bufferline.nvim
|
(use! :akinsho/bufferline.nvim
|
||||||
:tag "v2.*"
|
|
||||||
:requires [:kyazdani42/nvim-web-devicons
|
:requires [:kyazdani42/nvim-web-devicons
|
||||||
:famiu/bufdelete.nvim
|
:famiu/bufdelete.nvim
|
||||||
"~/.config/nvim/themes/solarized.nvim"]
|
"~/.config/nvim/themes/solarized.nvim"]
|
||||||
|
|||||||
10
.config/nvim/fnl/settings/lsp/hls.fnl
Normal file
10
.config/nvim/fnl/settings/lsp/hls.fnl
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
(local M {})
|
||||||
|
|
||||||
|
(fn M.setup [opts]
|
||||||
|
(vim.lsp.config :hls
|
||||||
|
{:on_attach opts.on_attach
|
||||||
|
:capabilities opts.capabilities
|
||||||
|
:flags opts.flags
|
||||||
|
:cmd [:/home/rhiobet/.cabal/bin/haskell-language-server "--lsp"]}))
|
||||||
|
|
||||||
|
M
|
||||||
@@ -73,7 +73,7 @@
|
|||||||
nil)
|
nil)
|
||||||
|
|
||||||
(fn M.setup [opts]
|
(fn M.setup [opts]
|
||||||
((. (require :lspconfig) :ltex :setup)
|
(vim.lsp.config :ltex
|
||||||
{:on_attach (fn [client] (opts.on_attach client)
|
{:on_attach (fn [client] (opts.on_attach client)
|
||||||
(post_attach)
|
(post_attach)
|
||||||
nil)
|
nil)
|
||||||
|
|||||||
16
.config/nvim/fnl/settings/lsp/ts_ls.fnl
Normal file
16
.config/nvim/fnl/settings/lsp/ts_ls.fnl
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
(local M {})
|
||||||
|
|
||||||
|
(local vue_language_server_path (.. (vim.fn.expand :$MASON/packages) :/vue-language-server "/node_modules/@vue/language-server"))
|
||||||
|
|
||||||
|
(fn M.setup [opts]
|
||||||
|
(vim.lsp.config :ts_ls
|
||||||
|
{:on_attach opts.on_attach
|
||||||
|
:capabilities opts.capabilities
|
||||||
|
:flags opts.flags
|
||||||
|
:init_options {:plugins [{:name "@vue/typescript-plugin"
|
||||||
|
:location vue_language_server_path
|
||||||
|
:languages [:vue]
|
||||||
|
:configNamespace :typescript}]}
|
||||||
|
:filetypes [:typescript :javascript :javascriptreact :typescriptreact :vue]}))
|
||||||
|
|
||||||
|
M
|
||||||
10
.config/nvim/fnl/settings/lsp/vue_ls.fnl
Normal file
10
.config/nvim/fnl/settings/lsp/vue_ls.fnl
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
(local M {})
|
||||||
|
|
||||||
|
(fn M.setup [opts]
|
||||||
|
(vim.lsp.config :vue_ls
|
||||||
|
{:on_attach opts.on_attach
|
||||||
|
:capabilities opts.capabilities
|
||||||
|
:flags opts.flags
|
||||||
|
:filetypes [:vue]}))
|
||||||
|
|
||||||
|
M
|
||||||
@@ -5,11 +5,13 @@
|
|||||||
[:bashls
|
[:bashls
|
||||||
:eslint
|
:eslint
|
||||||
:gopls
|
:gopls
|
||||||
|
:hls
|
||||||
:java_language_server
|
:java_language_server
|
||||||
:ltex
|
:ltex
|
||||||
:lua_ls
|
:lua_ls
|
||||||
:pyright
|
:pyright
|
||||||
:tsserver])
|
:ts_ls
|
||||||
|
:vue_ls])
|
||||||
|
|
||||||
; Mappings.
|
; Mappings.
|
||||||
(map! [n :noremap] "<space>e" vim.diagnostic.open_float)
|
(map! [n :noremap] "<space>e" vim.diagnostic.open_float)
|
||||||
@@ -30,7 +32,7 @@
|
|||||||
(map! [n :noremap :buffer] :<space>rn vim.lsp.buf.rename)
|
(map! [n :noremap :buffer] :<space>rn vim.lsp.buf.rename)
|
||||||
(map! [n :noremap :buffer] :<space>ca vim.lsp.buf.code_action)
|
(map! [n :noremap :buffer] :<space>ca vim.lsp.buf.code_action)
|
||||||
(map! [n :noremap :buffer] :gr vim.lsp.buf.references)
|
(map! [n :noremap :buffer] :gr vim.lsp.buf.references)
|
||||||
(map! [n :noremap :buffer] :<space>f vim.lsp.buf.formatting))
|
(map! [n :noremap :buffer] :<space>f vim.lsp.buf.format))
|
||||||
|
|
||||||
(local capabilities ((. (require :cmp_nvim_lsp) :default_capabilities) (vim.lsp.protocol.make_client_capabilities)))
|
(local capabilities ((. (require :cmp_nvim_lsp) :default_capabilities) (vim.lsp.protocol.make_client_capabilities)))
|
||||||
|
|
||||||
@@ -46,7 +48,7 @@
|
|||||||
(local (status config) (pcall require (.. "settings.lsp." lsp)))
|
(local (status config) (pcall require (.. "settings.lsp." lsp)))
|
||||||
(if status
|
(if status
|
||||||
(config.setup lsp_opts)
|
(config.setup lsp_opts)
|
||||||
((. (require :lspconfig) lsp :setup) lsp_opts)))
|
(vim.lsp.config lsp lsp_opts)))
|
||||||
|
|
||||||
; LuaSnip setup
|
; LuaSnip setup
|
||||||
(local luasnip (require :luasnip))
|
(local luasnip (require :luasnip))
|
||||||
@@ -78,5 +80,4 @@
|
|||||||
(fallback)))
|
(fallback)))
|
||||||
[:i :s])})
|
[:i :s])})
|
||||||
:sources [{:name "luasnip"}
|
:sources [{:name "luasnip"}
|
||||||
{:name "nvim_lsp"}]
|
{:name "nvim_lsp"}]})
|
||||||
:formatting {:format (lspkind.cmp_format {:mode "symbol_text"})}})
|
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
:S "split_with_window_picker"
|
:S "split_with_window_picker"
|
||||||
:s "vsplit_with_window_picker"}}
|
:s "vsplit_with_window_picker"}}
|
||||||
:filesystem {:filtered_items {:visible true}
|
:filesystem {:filtered_items {:visible true}
|
||||||
:follow_current_file true
|
:follow_current_file {:enabled true}
|
||||||
:window {:mappings {:/ "noop"
|
:window {:mappings {:/ "noop"
|
||||||
:g/ "fuzzy_finder"
|
:g/ "fuzzy_finder"
|
||||||
:f "noop"
|
:f "noop"
|
||||||
@@ -45,7 +45,7 @@
|
|||||||
_ (do
|
_ (do
|
||||||
(exec! [silent
|
(exec! [silent
|
||||||
!file -bL --mime `(.. "'" quoted_path "'")
|
!file -bL --mime `(.. "'" quoted_path "'")
|
||||||
| grep -qv "^text\\|^inode\\|^application/json"])
|
| grep -qv "^text\\|^inode\\|^application/json\\|^application/javascript"])
|
||||||
(if (= vim.v.shell_error 1)
|
(if (= vim.v.shell_error 1)
|
||||||
((. (require :neo-tree.sources.filesystem.commands) :open_with_window_picker) state)
|
((. (require :neo-tree.sources.filesystem.commands) :open_with_window_picker) state)
|
||||||
(exec! [silent
|
(exec! [silent
|
||||||
|
|||||||
@@ -3,7 +3,9 @@
|
|||||||
(local actions (require :telescope.actions))
|
(local actions (require :telescope.actions))
|
||||||
|
|
||||||
(setup :telescope
|
(setup :telescope
|
||||||
{:defaults {:mappings {:n {:S actions.file_split
|
{:defaults {:mappings {:i {"<C-Down>" actions.cycle_history_next
|
||||||
|
"<C-Up>" actions.cycle_history_prev}
|
||||||
|
:n {:S actions.file_split
|
||||||
:s actions.file_vsplit}}
|
:s actions.file_vsplit}}
|
||||||
:get_selection_window (. (require :window-picker) :pick_window)}
|
:get_selection_window (. (require :window-picker) :pick_window)}
|
||||||
:pickers {:find_files {:find_command [:fd "--type" "f"
|
:pickers {:find_files {:find_command [:fd "--type" "f"
|
||||||
|
|||||||
@@ -10,7 +10,8 @@
|
|||||||
:lua
|
:lua
|
||||||
:python
|
:python
|
||||||
:rust
|
:rust
|
||||||
:typescript]
|
:typescript
|
||||||
|
:vue]
|
||||||
:sync_install false
|
:sync_install false
|
||||||
:ignore_install []
|
:ignore_install []
|
||||||
:highlight {:enable true
|
:highlight {:enable true
|
||||||
|
|||||||
Reference in New Issue
Block a user