add ansible and terraform LSPs

main
Alpha Chen 1 year ago
parent c39fedd8b2
commit d6ed731c54
Signed by: alpha
SSH Key Fingerprint: SHA256:3fOT8fiYQG/aK9ntivV3Bqtg8AYQ7q4nV6ZgihOA20g

@ -27,6 +27,11 @@
(set vim.o.mouse nil) (set vim.o.mouse nil)
;; gui
(set vim.o.guifont "SauceCodePro Nerd Font")
(set vim.g.markdown_fenced_languages [:ts=typescript])
;; quick save ;; quick save
(vim.keymap.set :n "\\\\" ":write<cr>") (vim.keymap.set :n "\\\\" ":write<cr>")
(vim.keymap.set :i "\\\\" "<esc>:write<cr>") (vim.keymap.set :i "\\\\" "<esc>:write<cr>")

@ -3,23 +3,15 @@
;; .envrc: ;; .envrc:
;; use vim ;; use vim
;; ;;
;; .vimrc.local: ;; $ rake init:local-nvim
;; lua << EOF
;; package.path = "./.dev.local/?.fnl;" .. package.path
;; require("vimrc")
;; EOF
;;
;; .dev.local/vimrc.fnl
;; (local {: setup-lsp} (require :lsp))
;; (setup-lsp :ruby_ls)
(local lspconfig (require :lspconfig)) (local lspconfig (require :lspconfig))
(local {: lsp} vim) (local {: lsp} vim)
;; (lsp.set_log_level :debug) ; (lsp.set_log_level :debug)
;; Use rounded borders for :LspInfo ;; Use rounded borders for :LspInfo
(let [{: default_options} (require "lspconfig.ui.windows")] (let [{: default_options} (require :lspconfig.ui.windows)]
(tset default_options :border :rounded)) (tset default_options :border :rounded))
;;; fennel-ls ;;; fennel-ls
@ -124,6 +116,7 @@
:typescriptreact :typescriptreact
:vue]}) :vue]})
(setup-lsp :ansiblels)
(setup-lsp :elmls) (setup-lsp :elmls)
(setup-lsp :fennel-ls) (setup-lsp :fennel-ls)
(setup-lsp :pylsp {:on_attach (on-attach-do attach-navic disable-fmt)}) (setup-lsp :pylsp {:on_attach (on-attach-do attach-navic disable-fmt)})
@ -136,7 +129,9 @@
:cmd [:rustup :run :stable :rust-analyzer] :cmd [:rustup :run :stable :rust-analyzer]
:settings {:rust-analyzer {:checkOnSave {:command :clippy}}}}) :settings {:rust-analyzer {:checkOnSave {:command :clippy}}}})
(setup-lsp :tsserver {:on_attach (on-attach-do attach-navic disable-fmt)}) (setup-lsp :terraformls)
; (setup-lsp :tsserver {:on_attach (on-attach-do attach-navic disable-fmt)})
(setup-lsp :vuels {:on_attach (on-attach-do attach-navic disable-fmt)}) (setup-lsp :vuels {:on_attach (on-attach-do attach-navic disable-fmt)})
;; TODO ;; TODO

Loading…
Cancel
Save