cannot load lua_ls??

This commit is contained in:
Talon 2023-07-27 08:41:20 -06:00
parent 0686635319
commit 6c51135d78
2 changed files with 60 additions and 55 deletions

View file

@ -1,3 +1,13 @@
[*]
# optional space/tab
indent_style = space
# if indent_style is space, this is valid
indent_size = 2
# if indent_style is tab, this is valid
tab_width = 2
# none/single/double
quote_style = double
[*.lua] [*.lua]
# [basic] # [basic]

View file

@ -19,58 +19,53 @@
:build (.. "cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Release" :build (.. "cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Release"
" && cmake --build build --config Release" " && cmake --build build --config Release"
" && cmake --install build --prefix build" )} " && cmake --install build --prefix build" )}
;; TODO LSP configurations... {:url "https://github.com/neovim/nvim-lspconfig"
;; {:url "https://github.com/neovim/nvim-lspconfig" :dependencies
;; :dependencies ["https://github.com/williamboman/mason.nvim"
;; ["https://github.com/williamboman/mason.nvim" "williamboman/mason-lspconfig.nvim"
;; "williamboman/mason-lspconfig.nvim" {:url "https://github.com/j-hui/fidget.nvim"
;; {:url "https://github.com/j-hui/fidget.nvim" :tag "legacy"
;; :tag "legacy" :opts {}} ; NOTE: `opts = {}` is the same as calling `require("fidget").setup({})`
;; :opts {}} ; NOTE: `opts = {}` is the same as calling `require("fidget").setup({})` "folke/neodev.nvim"]}
;; "folke/neodev.nvim"]}
])) ]))
(let [telescope (require "telescope")] (let [telescope (require "telescope")]
(pcall (telescope.load_extension :fzf))) (pcall (telescope.load_extension :fzf)))
;; TODO fix LSP stuff... (let
;; (let [neodev (require :neodev)] [neodev (require :neodev)
;; (neodev.setup)) mason (require :mason)
mason-lspconfig (require :mason-lspconfig)
;; TODO mason can't find the modules it installs... servers
;; (let {:lua_ls {
;; [mason (require :mason) :Lua {
;; mason-lspconfig (require :mason-lspconfig) :workspace { :checkThirdParty false }
;; servers :telemetry { :enable false }}}
;; {:lua_ls { ;:fennel_language_server {}
;; :Lua { ;:bash_language_server {}
;; :workspace { :checkThirdParty false } ;:jq {}
;; :telemetry { :enable false }}} }
;; :fennel_language_server {} on_attach (fn [_ bufnr]
;; :bash_language_server {} (let
;; :jq {} [nmap #(vim.keymap.set :n $1 $2 {:buffer bufnr :desc (.. "LSP: " $3)})
;; } telescope (require :telescope.builtin)
;; on_attach (fn [_ bufnr] ]
;; (let (nmap :gd vim.lsp.buf.definition "[G]o to [D]efiniton")
;; [nmap #(vim.keymap.set :n $1 $2 {:buffer bufnr :desc (.. "LSP: " $3)}) (nmap :gr telescope.lsp_references "[G]o to [R]eferences")
;; telescope (require :telescope.builtin) (nmap :gI vim.lsp.buf.implementation "[G]o to [I]mplementation")
;; ] (vim.api.nvim_buf_create_user_command bufnr "Format" #(vim.lsp.buf.format)
;; (nmap :gd vim.lsp.buf.definition "[G]o to [D]efiniton") "Format current buffer with LSP")))
;; (nmap :gr telescope.lsp_references "[G]o to [R]eferences") ]
;; (nmap :gI vim.lsp.buf.implementation "[G]o to [I]mplementation") (neodev.setup)
;; (vim.api.nvim_buf_create_user_command bufnr "Format" #(vim.lsp.buf.format) (mason.setup)
;; "Format current buffer with LSP"))) (mason-lspconfig.setup)
;; ] (mason-lspconfig.setup_handlers
;; (mason.setup) [(fn [server_name] (let
;; (mason-lspconfig.setup) [server (require server_name)
;; (mason-lspconfig.setup_handlers ]
;; [(fn [server_name] (let (server.setup
;; [server (require server_name) {:capabilities (vim.lsp.protocol.make_client_capabilities)
;; settings (. servers server_name) :on_attach on_attach
;; filetypes (or settings.filetypes []) :settings (. servers server_name)
;; ] :filetypes (or settings.filetypes []) })))
;; (server.setup {:capabilities (vim.lsp.protocol.make_client_capabilities) ]))
;; :on_attach on_attach
;; :settings settings
;; :filetypes filetypes})))
;; ]))