mirror of
https://github.com/stevenproctor/dotfiles.git
synced 2026-11-22 14:48:25 -06:00
nvim: lsp plugin updates
This commit is contained in:
2 files changed
+7
-27
No files matched your search
@@ -5,8 +5,7 @@
|
|||||||
(vim.diagnostic.config {:signs {:text {vim.diagnostic.severity.ERROR "☢️"
|
(vim.diagnostic.config {:signs {:text {vim.diagnostic.severity.ERROR "☢️"
|
||||||
vim.diagnostic.severity.WARN "⚠️"
|
vim.diagnostic.severity.WARN "⚠️"
|
||||||
vim.diagnostic.severity.INFO "ℹ️"
|
vim.diagnostic.severity.INFO "ℹ️"
|
||||||
vim.diagnostic.severity.HINT "🔎"
|
vim.diagnostic.severity.HINT "🔎"}
|
||||||
}
|
|
||||||
;; :linehl {vim.diagnostic.severity.ERROR :ErrorMsg}
|
;; :linehl {vim.diagnostic.severity.ERROR :ErrorMsg}
|
||||||
;; :numhl {vim.diagnostic.severity.WARN :WarningMsg}
|
;; :numhl {vim.diagnostic.severity.WARN :WarningMsg}
|
||||||
}})
|
}})
|
||||||
@@ -135,7 +134,8 @@
|
|||||||
:trim_newlines true
|
:trim_newlines true
|
||||||
:gleam true})
|
:gleam true})
|
||||||
|
|
||||||
(vim.lsp.enable [:clojure :fennel-ls :typedclojure])
|
(each [_ lsp-lang (pairs [:clojure :fennel-ls :typedclojure])]
|
||||||
|
(vim.lsp.enable lsp-lang))
|
||||||
|
|
||||||
[(tx :folke/lsp-colors.nvim {})
|
[(tx :folke/lsp-colors.nvim {})
|
||||||
(tx :williamboman/mason.nvim {:tag :v1.11.0 :opts {}})
|
(tx :williamboman/mason.nvim {:tag :v1.11.0 :opts {}})
|
||||||
@@ -231,8 +231,6 @@
|
|||||||
u (require :dotfiles.util)
|
u (require :dotfiles.util)
|
||||||
lsp (require :vim.lsp)
|
lsp (require :vim.lsp)
|
||||||
cmp_nvim_lsp (require :cmp_nvim_lsp)]
|
cmp_nvim_lsp (require :cmp_nvim_lsp)]
|
||||||
(vim.lsp.enable :gleam)
|
|
||||||
|
|
||||||
(fn bufmap [mode from to opts]
|
(fn bufmap [mode from to opts]
|
||||||
(u.noremap mode from to (a.merge {:local? true} opts)))
|
(u.noremap mode from to (a.merge {:local? true} opts)))
|
||||||
|
|
||||||
@@ -328,26 +326,7 @@
|
|||||||
(vim.lsp.config server-name
|
(vim.lsp.config server-name
|
||||||
{:capabilities caps
|
{:capabilities caps
|
||||||
: on_attach})
|
: on_attach})
|
||||||
(vim.lsp.enable server-name))
|
(vim.lsp.enable server-name))))))})
|
||||||
{; :tailwindcss
|
|
||||||
; (fn []
|
|
||||||
; ;; https://github.com/tailwindlabs/tailwindcss/discussions/7554#discussioncomment-12991596
|
|
||||||
; ;; https://github.com/tailwindlabs/tailwindcss-intellisense/issues/401#issuecomment-2336568169
|
|
||||||
; ;; https://github.com/tailwindlabs/tailwindcss-intellisense/issues/400#issuecomment-2664427180
|
|
||||||
; (vim.lsp.config "tailwindcss"
|
|
||||||
; {:settings
|
|
||||||
; {:tailwindCSS
|
|
||||||
; {:experimental
|
|
||||||
; {:classRegex [["\\[:[^.\\s]*((?:\\.[^.\\s\\]]*)+)[\\s\\]]" "\\.([^.]*)"]
|
|
||||||
; ["\\:(\\.[^\\s#]+(?:\\.[^\\s#]+)*)" "\\.([^\\.\\s#]+)"]
|
|
||||||
; ["class\\s+(\\:[^\\s\\}]*)[\\s\\}]" "[\\:.]([^.]*)"]
|
|
||||||
; ["class\\s+(\"[^\\}\"]*)\"" "[\"\\s]([^\\s\"]*)"]
|
|
||||||
; ["class\\s+\\[([\\s\\S]*)\\]" "[\"\\:]([^\\s\"]*)[\"]?"]
|
|
||||||
; ["class\\s+'\\[([\\s\\S]*)\\]" "([^\\s]*)?"]]}
|
|
||||||
; :includeLanguages {:clojure "html"
|
|
||||||
; :clojurescript "html"}}}})
|
|
||||||
; (vim.lsp.enable "tailwindcss"))
|
|
||||||
}))))})
|
|
||||||
(tx :RubixDev/mason-update-all {:cmd :MasonUpdateAll
|
(tx :RubixDev/mason-update-all {:cmd :MasonUpdateAll
|
||||||
:dependencies [:williamboman/mason.nvim
|
:dependencies [:williamboman/mason.nvim
|
||||||
:Olical/nfnl]
|
:Olical/nfnl]
|
||||||
|
|||||||
@@ -51,7 +51,9 @@ local filetype__3eformatters = {lua = {"stylua"}, sh = {"shfmt"}, python = {"ruf
|
|||||||
local formatter__3epackage = {ruff_organize_imports = "ruff", ruff_format = "ruff"}
|
local formatter__3epackage = {ruff_organize_imports = "ruff", ruff_format = "ruff"}
|
||||||
local disable_formatter_on_save = {fennel = true, sql = true}
|
local disable_formatter_on_save = {fennel = true, sql = true}
|
||||||
local disable_formatter_auto_install = {cljfmt = true, fnlfmt = true, rustfmt = true, trim_whitespace = true, trim_newlines = true, gleam = true}
|
local disable_formatter_auto_install = {cljfmt = true, fnlfmt = true, rustfmt = true, trim_whitespace = true, trim_newlines = true, gleam = true}
|
||||||
vim.lsp.enable({"clojure", "fennel-ls", "typedclojure"})
|
for _, lsp_lang in pairs({"clojure", "fennel-ls", "typedclojure"}) do
|
||||||
|
vim.lsp.enable(lsp_lang)
|
||||||
|
end
|
||||||
local function _14_(_, opts)
|
local function _14_(_, opts)
|
||||||
local conform = require("conform")
|
local conform = require("conform")
|
||||||
local registry = require("mason-registry")
|
local registry = require("mason-registry")
|
||||||
@@ -108,7 +110,6 @@ local function _23_()
|
|||||||
local u = require("dotfiles.util")
|
local u = require("dotfiles.util")
|
||||||
local lsp = require("vim.lsp")
|
local lsp = require("vim.lsp")
|
||||||
local cmp_nvim_lsp = require("cmp_nvim_lsp")
|
local cmp_nvim_lsp = require("cmp_nvim_lsp")
|
||||||
vim.lsp.enable("gleam")
|
|
||||||
local function bufmap(mode, from, to, opts)
|
local function bufmap(mode, from, to, opts)
|
||||||
return u.noremap(mode, from, to, a.merge({["local?"] = true}, opts))
|
return u.noremap(mode, from, to, a.merge({["local?"] = true}, opts))
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in new issue
Block a user