[nvim] format: tabstop=8 -> 4 for lua files
This commit is contained in:
parent
bc67eb8ffe
commit
d9e7f76a5f
@ -7,3 +7,4 @@ local opt = vim.opt
|
||||
local g = vim.g
|
||||
|
||||
opt.formatoptions = "trq1jp"
|
||||
opt.tabstop = 4
|
||||
|
@ -5,7 +5,6 @@
|
||||
|
||||
|
||||
local opt = vim.opt
|
||||
local g = vim.g
|
||||
|
||||
opt.formatoptions = "trq1jp"
|
||||
opt.tabstop = 4
|
||||
|
@ -6,8 +6,6 @@
|
||||
local M = {} -- The module to export
|
||||
|
||||
M = {
|
||||
lsp_path = vim.fn.stdpath("data").. "/lsp",
|
||||
|
||||
-- misc
|
||||
sign_error = "",
|
||||
sign_warning = "",
|
||||
|
@ -26,7 +26,8 @@ vim.keymap.set("n", "<leader>fl",
|
||||
function() require("telescope.builtin").live_grep() end)
|
||||
|
||||
-- colorscheme
|
||||
vim.keymap.set("n", "<C-s>", function() require("astronomy").toggle_variant() end)
|
||||
vim.keymap.set("n", "<C-s>",
|
||||
function() require("astronomy").toggle_variant() end)
|
||||
|
||||
-- snippets
|
||||
vim.keymap.set({ "i", "s" }, "<C-E>", "<Plug>luasnip-next-choice")
|
||||
|
@ -55,7 +55,8 @@ local enhance_server_opts = {
|
||||
opts.settings = {
|
||||
Lua = {
|
||||
runtime = {
|
||||
-- Tell the language server which version of Lua you're using (most likely LuaJIT in the case of Neovim)
|
||||
-- Tell the language server which version of Lua you're
|
||||
-- using (most likely LuaJIT in the case of Neovim)
|
||||
version = 'LuaJIT',
|
||||
-- Setup your lua path
|
||||
path = runtime_path,
|
||||
@ -73,7 +74,8 @@ local enhance_server_opts = {
|
||||
library =
|
||||
vim.api.nvim_get_runtime_file("", true),
|
||||
},
|
||||
-- Do not send telemetry data containing a randomized but unique identifier
|
||||
-- Do not send telemetry data containing a randomized but
|
||||
-- unique identifier
|
||||
telemetry = {
|
||||
enable = false,
|
||||
},
|
||||
|
@ -45,8 +45,9 @@ return require("packer").startup(function()
|
||||
{
|
||||
"nvim-lua/plenary.nvim",
|
||||
},
|
||||
{'nvim-telescope/telescope-fzf-native.nvim',
|
||||
run = 'make'
|
||||
{
|
||||
"nvim-telescope/telescope-fzf-native.nvim",
|
||||
run = "make"
|
||||
}
|
||||
},
|
||||
}
|
||||
@ -92,7 +93,7 @@ return require("packer").startup(function()
|
||||
-- autopairs
|
||||
use {
|
||||
"windwp/nvim-autopairs",
|
||||
config = function() require('nvim-autopairs').setup() end
|
||||
config = function() require("nvim-autopairs").setup() end
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user