this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add flutter-tools.nvim

+20 -14
+2
lua/user/lsp/init.lua
··· 4 4 require("user.lsp.lsp-installer") 5 5 require("user.lsp.handlers").setup() 6 6 require("user.lsp.null-ls") 7 + 8 + require("user.lsp.specifics.flutter")
+2 -2
lua/user/lsp/lsp-installer.lua
··· 2 2 if not ok then return end 3 3 4 4 -- Install loved servers 5 - local servers = {"sumneko_lua", "gopls", "tailwindcss", "tsserver"} 5 + local servers = { "sumneko_lua", "gopls", "tailwindcss", "tsserver" } 6 6 for _, name in pairs(servers) do 7 7 local server_is_found, server = lsp_installer.get_server(name) 8 8 if server_is_found and not server:is_installed() then ··· 27 27 28 28 if server.name == "sumneko_lua" then 29 29 local sumneko_opts = require("user.lsp.settings.sumneko_lua") 30 - opts = vim.tbl_deep_extend("force", sumneko_opts, opts) 30 + opts = vim.tbl_deep_extend("force", opts, sumneko_opts) 31 31 end 32 32 33 33 if server.name == "tsserver" then
+12 -12
lua/user/lsp/null-ls.lua
··· 5 5 local b = null_ls.builtins 6 6 7 7 local eslintConfig = { 8 - condition = function (utils) 8 + condition = function(utils) 9 9 return utils.root_has_file({ ".eslintrc.json" }) 10 10 end 11 11 } ··· 29 29 -- extra_args = { '--no-semi', "--single-quote", "--jsx-single-quote" }, 30 30 -- }), ]] 31 31 b.formatting.prettier.with({ 32 - extra_args = {'--no-semi', '--single-quote', '--jsx-single-quote'} 32 + extra_args = { '--no-semi', '--single-quote', '--jsx-single-quote' } 33 33 }) 34 34 }, 35 - on_attach = function (client) 36 - if client.resolved_capabilities.document_formatting then 37 - vim.cmd([[ 38 - augroup LspFormatting 39 - autocmd! * <buffer> 40 - autocmd BufWritePre <buffer> lua vim.lsp.buf.formatting_sync() 41 - augroup END 42 - ]]) 43 - end 44 - end, 35 + -- on_attach = function (client) 36 + -- if client.resolved_capabilities.document_formatting then 37 + -- vim.cmd([[ 38 + -- augroup LspFormatting 39 + -- autocmd! * <buffer> 40 + -- autocmd BufWritePre <buffer> lua vim.lsp.buf.formatting_sync() 41 + -- augroup END 42 + -- ]]) 43 + -- end 44 + -- end, 45 45 })
+1
lua/user/lsp/settings/sumneko_lua.lua
··· 8 8 library = { 9 9 [vim.fn.expand("$VIMRUNTIME/lua")] = true, 10 10 -- [vim.fn.stdpath("config") .. "/lua"] = true, 11 + -- NOTE: https://rishabhrd.github.io/jekyll/update/2020/09/19/nvim_lsp_config.html#some-lsp-client-configurations 11 12 }, 12 13 }, 13 14 },
+1
lua/user/lsp/specifics/flutter.lua
··· 1 + require("flutter-tools").setup {}
+2
lua/user/plugins.lua
··· 75 75 use "williamboman/nvim-lsp-installer" -- simple to use language server installer 76 76 use "jose-elias-alvarez/null-ls.nvim" -- for formatters and linters 77 77 use "jose-elias-alvarez/nvim-lsp-ts-utils" -- typescript dev utils 78 + -- Language specific plugins (doesn't depend on nvim-lspconfg) 79 + use "akinsho/flutter-tools.nvim" -- flutter 78 80 79 81 -- Telescope 80 82 use "nvim-telescope/telescope.nvim"